package Hw2;

public class Vehicle {
    private  float speed;
    public Vehicle () {}
    public void setSpeed (float speed) {
        this.speed = speed;
    }
    public float getSpeed() {
        return this.speed;
    }
    public void speedUp () {
        this.speed = speed + 20;
    }
}
